package com.sky.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sky.domain.SmsSpuBounds;
import com.sky.dto.SmsSpuBoundsDTO;
import com.sky.service.SmsSpuBoundsService;
import com.sky.mapper.SmsSpuBoundsMapper;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【sms_spu_bounds(商品spu积分设置)】的数据库操作Service实现
* @createDate 2024-06-30 16:43:10
*/
@Service
public class SmsSpuBoundsServiceImpl extends ServiceImpl<SmsSpuBoundsMapper, SmsSpuBounds> implements SmsSpuBoundsService{

    @Override
    public boolean addSpuBounds(SmsSpuBoundsDTO smsSpuBoundsDTO) {
        SmsSpuBounds smsSpuBounds = new SmsSpuBounds();
        BeanUtils.copyProperties(smsSpuBoundsDTO, smsSpuBounds);
        baseMapper.insert(smsSpuBounds);
        return true;
    }
}




